home *** CD-ROM | disk | FTP | other *** search
/ The Business Master (4th Edition) / The Business Master - 4th Edition.iso / files / utilfile / cams / install.bat < prev    next >
DOS Batch File  |  1992-03-16  |  1KB  |  64 lines

  1. : CAMS installation batch file
  2. : requires a source diskette and a destination disk(ette), both without colons
  3. : syntax:  install [source] [destination]
  4.  
  5. ECHO OFF
  6. CLS
  7.  
  8. : test for command line switches
  9. IF X%1X == XX GOTO crashfrom
  10. IF X%2X == XX GOTO crashto
  11.  
  12. : get user verification of switches
  13. ECHO CAMS will be installed:
  14. ECHO from %1
  15. ECHO       ^  If the character above the caret is a colon press Ctrl-C
  16. ECHO  
  17. ECHO   to %2
  18. ECHO       ^  If the character above the caret is a colon press Ctrl-C
  19. PAUSE
  20.  
  21. : do it
  22. CLS
  23. ECHO This program is installing CAMS from the root directory of a diskette
  24. ECHO at %1: into a directory named CAMS on the disk(ette) the at %2:
  25. %1:
  26. CD\
  27. %2:
  28. CD\
  29. ECHO Creating the CAMS directory...
  30. MD CAMS
  31. ECHO  
  32. ECHO Extracting the CAMS files from compressed format.  Please wait...
  33. %1:\CAMS12 %2:\CAMS
  34. ECHO  
  35. GOTO done
  36. :crashfrom
  37. ECHO You have not provided a "from" location.  Terminating.
  38. GOTO failed
  39. :crashto
  40. ECHO You have not provided a "to" location.  Terminating.
  41. GOTO failed
  42. :done
  43. CLS
  44. ECHO  
  45. ECHO  
  46. ECHO  
  47. ECHO  
  48. ECHO  
  49. ECHO  
  50. ECHO  
  51. ECHO  
  52. ECHO Finished.
  53. ECHO  
  54. ECHO You should copy the following to the appropriate
  55. ECHO WordPerfect directory/subdirectory.
  56. ECHO  
  57. ECHO      VRLETTER.PRI
  58. ECHO      VRPERLST.PRI
  59. ECHO      VISIT.WPM
  60. ECHO      VISIT-M.WPM
  61. ECHO  
  62. ECHO To run CAMS, change to the CAMS directory and type "CAMS" and press ENTER.
  63. :failed
  64.